import 'package:bwt_ad_flutter/ad/BwtAd.dart';
import 'package:bwt_ad_flutter/ad/loader/BwtAdLoader.dart';

import '../../BwtAdCore.dart';

class BwtSplashAdLoader extends BwtAdLoader<BwtAd> {
  /// 加载广告
  loadAd({
    required String posId,
    String backgroundName = '',
    String logoName = '',
  }) {
    load(posId: posId, methodName: BwtAdCore.methodLoadSplashAd, arguments: {
      BwtAdCore.keyAdBackground: backgroundName,
      BwtAdCore.keyAdLogo: logoName,
    });
  }

  @override
  BwtAd createBwtAd({
    required String adId,
    required Map<String, dynamic>? arguments,
  }) {
    return BwtAd(adId: adId, adLoaderId: adLoaderId);
  }
}
